package com.edais.dao;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import com.edais.domain.MediaDomain;
import com.edais.persistence.MediaMapper;

@Repository

public class MediaDao {
	@Autowired
	public MediaMapper mediaMapper;
	
	public List<MediaDomain> getMediaNo(Map paramMap){
		return mediaMapper.getMediaNo(paramMap);
		
	}
	
	public String getMediaCount(Map paramMap){
		return mediaMapper.getMediaCount(paramMap);
		
	}
	
	/**
	 * 读取通告内容
	 * @param noticeId
	 * @return
	 */
	public MediaDomain getMediaContent(String noticeId){
		return mediaMapper.getMediaContent(noticeId);		
	}
}
